<?php

namespace Drupal\ui_mlt\ViewsController;


use Drupal\ui_mlt\ViewsController\handler\field\UiMltEditLinkViewsField;
use EntityDefaultViewsController;

class UiMltViewsController extends EntityDefaultViewsController {

  public function views_data() {
    $data = parent::views_data();
    if (!empty($this->info['base table'])) {
      $table = $this->info['base table'];

      $data[$table]['edit_link'] = [
        'title' => t('编辑'),
        'help' => t('编辑.'),
        'field' => [
          'handler' => UiMltEditLinkViewsField::class,
        ],
      ];
    }
    return $data;
  }
}
